/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.eleric.rememome.type;

import android.graphics.Color;

/**
 *
 * @author mwaldman
 */
public enum PriorityType
{

    TRIVIAL(Color.CYAN),
    LOW(Color.BLUE),
    MEDIUM(Color.GREEN),
    HIGH(Color.MAGENTA),
    URGENT(Color.RED);
    private int color;

    PriorityType(int color)
    {
        this.color = color;
    }

    public int getColor()
    {
        return color;
    }

    public void setColor(int color)
    {
        this.color = color;
    }
    
    static public PriorityType getType(int priority)
    {
            return values()[priority];
    }
    
    static public int getMaxPriority()
    {
        return values().length-1;
    }
}
